<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>修改</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">
</head>
<body>
     <div class="layui-container" style="padding:2%">
        <form class="layui-form layui-clear" id="crimForm" action="{:url('duty/event/edit',array('eventId'=>$info.id))}" style="margin-top: 20px;" lay-filter="event">
                <!--第一行-->
                <div class="layui-form-item">
                <span id="enter">
                <div class="layui-inline">
                    <label class="layui-form-label">事发企业&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" style="width: 355px">
                        <select name="enterpriseId" lay-filter="linkage" data-url="{:url('admin/ajax.enterprise/getDangerSourceList')}" data-child="DangerSourceId" lay-verify="required" id="enterprise" class="company">                  
            <option></option>
        {volist name="enterpriseList" id="item"}
        <option value="{$key}"  {if $info.enterpriseId==$key}selected{/if}>{$item}</option>{/volist}
                            
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">危险源&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" style="width: 355px">
         <select name="dangerSourceId" id="DangerSourceId"  lay-verify="required" class="DangerSourceId" lay-filter="dangersource" data-value="{$info.dangerSourceId}"></select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">灾情类别&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" style="width: 355px">
                            <select name="eventTypeId" lay-verify="required" id="eventType"  lay-filter="eventtype" class="eventtype">
                <option ></option>
                {volist name="type" id="vo"}
                <option value="{$key}"   {if $info.eventTypeId==$key}selected{/if}>{$vo}</option>{/volist}
            </select>
                 
                    </div>
                </div>
            </span>
            <div class="layui-inline" style="display: none">
                <label class="layui-form-label">位置<small>经纬度</small><i class="layui-icon arrow">&#xe642;</i></label>
                <div class="layui-input-inline" style="width: 215px">
                    <input class="layui-input" name="LatitudeLongitude" data-set="LatitudeLongitude" placeholder="请选择经纬度" readonly lay-verify="LatitudeLongitude" type="text"/>
                </div>
            </div>
        </div>

        
        <div class="layui-form-item" id="diass">
            <div class="layui-inline">
                <label class="layui-form-label">标题</label>
                <div class="layui-input-block crimId" data-crim="" style="width: 935px">
                    <input class="layui-input" name="Title" data-set="Title" type="text" placeholder="请输入标题"/ value="{$info.Title}">
                </div>
            </div>
            <div class="layui-form-item">
               <div class="layui-inline">
                <label class="layui-form-label">灾情分级</label>
                <div class="layui-input-inline" style="width: 222px">
                            <select name="status">
                <option></option>
                {volist name="eventtype" id="vo" }
                <option value="{$key}"  {if $info.status==$key}selected{/if}>{$vo}</option>{/volist}
            </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">告警开始<small>时间</small></label>
                <div class="layui-input-inline" style="width: 222px">
                    <input class="layui-input " id="startTime" name="startTime" placeholder="开始日期" type="text"  value="{$info.startTime|date='Y-m-d h:i:s',###}" />
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">接报人</label>
                <div class="layui-input-inline" style="width: 222px">
                  
                            <select name="receiveId">
                <option></option>
                {volist name="userList" id="vo" }
                <option value="{$key}" {if $info.receiveId==$key}selected{/if}
                >{$vo}</option>{/volist}
            </select>
                </div>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">威胁范围</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea" name="threatenRange" data-set="threatenRange" placeholder="请输入内容">{$info.threatenRange}</textarea>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">详细情况</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea" name="detail" data-set="detail" placeholder="请输入内容">{$info.detail}</textarea>
            </div>
        </div>

           <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">实景图&nbsp;<i class="layui-icon arrow">　</i></label>
            <div class="layui-input-inline">
                 <button type="button" class="layui-btn" id="iconImg" data-url="{:url('admin/api.upload/upload')}">上传图片</button>
             </div>
                 <div class="layui-inline">
                    <div class="layui-input-inline">
                <img src="__STATIC__/img/duty/nopic.png" class="layui-upload-img" id="iconImgSample" style="width:100px;height:100px;">
                    <input class="layui-hide" type="text" name="pathInfo">
                    </div>
               
            </div>
        </div>
        <input type="hidden" value="1" name="eventType">
         <input type="hidden" name="id" value="{$info.id}"/>
    <div class="layui-form-item">
               
                <div class="layui-inline">
                    <div class="layui-input-block">
                         <button class="layui-btn" id="save" lay-submit lay-filter="editsave">保 存 </button>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-normal" type="reset">重 置</button>
                    </div>
                </div>
            </div>
        </form>
    </div>  
    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/duty/event.js"></script>
   </script>

</body>
</html>           

